package com.educatioin.manage.web.schoolgradeclass.repository;

import com.educatioin.manage.web.schoolgradeclass.po.SchoolGradeClassPo;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;

/**
 * Created by caizh on 18-5-5.
 */
@RepositoryRestResource(collectionResourceRel = "schoolGradeClassRepository", path = "schoolGradeClassRepository")
public interface SchoolGradeClassRepository extends JpaSpecificationExecutor<SchoolGradeClassPo>, PagingAndSortingRepository<SchoolGradeClassPo, Long> {

    SchoolGradeClassPo findByschoolNameAndGradeAndClazz(String schoolName, String grade, String clazz);
}
